/**
 * 
 */
package neptune.web.client.view.components.editor;

import neptune.web.client.model.topology.SerializableNetworkInterface;
import neptune.web.client.model.topology.SerializableNode;
import neptune.web.client.model.topology.SerializableTopology;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.TreeItem;

/**
 * @author Roberto Bifulco [RobertoBifulco.it] [info@robertoBifulco.it]
 * 
 */
public class NetIFPropsCommand implements Command {

	private SerializableNetworkInterface interf;
	private TreeItem item;
	private final SerializableNode node;
	private final SerializableTopology topology;

	public NetIFPropsCommand(SerializableNetworkInterface interf,
			SerializableNode node, SerializableTopology topology,
			TreeItem treeItem) {
		super();
		this.node = node;
		this.topology = topology;
		this.item = treeItem;
		this.interf = interf;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.google.gwt.user.client.Command#execute()
	 */
	public void execute() {
		NetIFPropsDialog dialog = new NetIFPropsDialog(interf, node, topology,
				item);
		dialog.center();
	}

}
